package cn.watson.org.service;

import cn.watson.basic.utils.PageList;
import cn.watson.org.domain.Department;
import cn.watson.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    // 分页+高级查询
    PageList<Department> queryData(DepartmentQuery departmentQuery);

    // 查询所有
    List<Department> loadAll();

    // 更具id查询
    Department loadById(Long id);

    // 更具id删除
    void remove(Long id);

    // 修改
    void update(Department department);


    // 新增
    void save(Department department);

}
